package com.aoplog.demo.service;

import com.aoplog.demo.annotation.CustomerAnnotationLog;
import com.aoplog.demo.entity.Person;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import javax.xml.crypto.Data;
import java.util.List;

import com.aoplog.demo.dao.PersonDao;

@Service
public class PersonService{

    @Resource
    private PersonDao personDao;

    public int insert(Person pojo){
        return personDao.insert(pojo);
    }

    public int insertSelective(Person pojo){
        return personDao.insertSelective(pojo);
    }

    public int insertList(List<Person> pojos){
        return personDao.insertList(pojos);
    }

    @CustomerAnnotationLog(descp = "更新用户id",include = "pojo")
    public int update(Person pojo){
        return personDao.update(pojo);
    }

    public Person selectUser() {
        return personDao.selectUser();
    }

    public Person findUser(Person person) {
        return personDao.findUser(person);
    }
}
